//
//  DHAlertView.h
//
//  Created by 董浩 on 15/11/30.
//  Copyright © 2015年 董浩. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef void(^click)();
@interface DHAlertView : UIView

+ (DHAlertView *)alertViewWithTitle:(NSString *)title message:(NSString *)message;
- (id)initWithTitle:(NSString *)title message:(NSString *)message;
- (void)addCancelButtonWithTitle:(NSString *)cancel block:(click) cancelBlock destructiveButtonWithTitle:(NSString *)destructive block:(click) destructiveBlock;
- (id)initWithContentHeight:(CGFloat)height;
@property (nonatomic, copy)click cancelBlock;
@property (nonatomic, copy)click destructiveBlock;
@property (nonatomic, strong) UIView *contentView;

- (void)show;
- (void)disMiss;

//中间白框手势 自定义block
- (id)initTouchAlertWithContentHeight:(CGFloat)height actionBlock:(void(^)())block;

@end
